RewriteEngine on

# serve existing files in the /public folder as if they were in /
RewriteRule (.+) /public/$1 [L]

# route everything else to /public/index.php
RewriteRule ^ /public/index.php [L]
